<?php include("core.php"); ?>

<?php get_header(); ?>
<div id="wrap">
<table width="960" border="0">
    <tr valign="top">

        <td width="620">
            <div id="boxMain">
            	<div id="registracija">
            	<?php if (!isset($_POST['submit'])) { ?>    
                        <h4>1. Vaši podatki</h4>
                           
                      <form method="post" action="<?php baseurl();?>/registracija">
                          <table width="100%" border="0" cellpadding="1" cellspacing="1">
                            
                            <tr><td width="150" >
                            <span class="form_text">Ime</span>
                            </td>
                            <td>
                            <input type="text" name="realName" value="Vaše ime..." size="30" />
                            </td></tr>
                            
                            <tr><td width="150">
                            <span class="form_text">Priimek</span>
                            </td>
                            <td>
                            <input type="text" name="lastName" value="Vaš priimek..." size="30" />
                            </td></tr>
                            
                            <tr><td width="150">
                            <span class="form_text">Email</span>
                            </td>
                            <td>
                            <input type="text" name="email" value="Vaš email..." size="30" />
                            </td></tr>
                            
                            <tr><td width="150">
                            <span class="form_text">Potrdite Email</span>
                            </td>
                            <td>
                            <input type="text" name="vemail" value="Ponovno vpišite email..." size="30" />
                            </td></tr>
                            
                           </table>
                            
                        <h4>2. Uporabniški podatki</h4>
                            
                            <table width="100%" border="0" cellpadding="1" cellspacing="1">
                            
                            <tr><td width="150" >
                            <span class="form_text">Uporabniško ime</span>
                            </td>
                            <td>
                            <input type="text" name="userName" value="Vaše uporabniško ime..." size="30" />
                            </td></tr>
                            
                            <tr><td width="150">
                            <span class="form_text">Geslo</span>
                            </td>
                            <td>
                            <input type="text" name="passw" value="Vaše geslo..." size="30" />
                            </td></tr>
                            
                            <tr><td width="150">
                            <span class="form_text">Potrdite geslo</span>
                            </td>
                            <td>
                            <input type="text" name="vpassw" value="Ponovno vpišite geslo..." size="30" />
                            </td></tr>
                                   
                           </table>
                           
                           <table width="100%" border="0" cellpadding="1" cellspacing="1">
                           <h4>3.Pogoji uporabe</h4>
                           
                           <textarea cols="52" rows="12"><?php include("includes/pogoji_uporabe.php");?></textarea>
                           </table>
                            <br/>
                            <input type="submit" name="submit" value="Registriraj" />
                            
                      </form>
                    
                    <?php
                    } else {
                        $ime = $_POST['realName'];
						$priimek = $_POST['lastName'];
						$email = $_POST['email'];
						$validEmail = $_POST['vemail'];
                    	$uname = $_POST['userName'];
						$pass = $_POST['passw'];
						$pass2 = $_POST['vpassw'];
						
                    
                        }
                        
                    ?>
              </div>
            </div>
        </td>
        
        <td width="320">
        	<div id="rightSide">
        		<?php get_rightSide(register);?>
            </div>
        </td>
        
    </tr>
</table>
</div>
<?php get_footer(); ?>